package dao;

import entity.Admin;

public class AdminDao {
    //假设我们从数据库查询到了用户名密码
    String dbusername = "admin";
    String dbpassword = "1234";

    public boolean selectUser(String username,String password){
            if(username.equals(dbusername) && password.equals(dbpassword)){
                //用户密码匹配成功返回true
                return true;
            }
            return false;
    }
}
